<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of StatisticController
 *
 * @author Admin
 */
class Adv_StatisticController extends Zend_Controller_Action 
{

    public function init() {
        $this->_helper->layout->setLayout('advertiser');
    }

    public function indexAction() {
        $idAdvertiser = Zend_Auth::getInstance()->getIdentity()->id;
        $statistic = new Adv_Model_Statistic();
        $allCampaigns = $statistic->getAllAdverCampaigns($idAdvertiser);
        $this->view->allCampaigns = $allCampaigns;
    }

    public function accountAction() {
        $idAdvertiser = Zend_Auth::getInstance()->getIdentity()->id;
        $statistic = new Adv_Model_Statistic();
        $allTransactions = $statistic->getSelectAdvTransactions($idAdvertiser);
        $this->view->allTransactions = $allTransactions;
    }   

}

?>
